home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
monalisa10b.lha
/
Monalisa
/
Contributions
/
NNTPGet
/
FetchSinceLast.rexx
next >
Wrap
OS/2 REXX Batch file
|
1994-07-26
|
632b
|
23 lines
/* fetch articles since last call */
/* move the timestamp 10 minutes into the past to remove any clock difference
between the Amiga and the NNTP-Server */
now = time('s') - 600
now = trunc(now/3600)//60 || ":" || trunc(now/60)//60 || ":" || now//60
/* read the last timestamp */
if (open('f','stampfile','r')) then do
last = readln('f')
close('f')
end
else
last = 'yesterday'
/* and put the new timestamp */
open('f','stampfile','w')
writeln('f',now)
close('f')
/* run nntpget to fetch something since last invocation */
address command "nntpget FROM comp.sys.amiga.* NNTPSERVER news TO T:newsbatch.nntp since" last